const express = require('express')
const router = express.Router()
const usersApi = require('../controller/users')

router.post('/users', usersApi.signUp)

router.get('/users/verification/code', usersApi.getVerificationCode)

router.get('/users/:userId', usersApi.fetchUserInfo)

router.get('/users/:userId/roles', usersApi.fetchUserRoles)

router.get('/roles', usersApi.fetchUserRoles)

router.patch('/users/retrieval', usersApi.retrieve)

router.get('/test', usersApi.test)

module.exports = router
